package com.xxx.mall.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 * @author 邢晨旭
 * {@code @date} 2023/11/20
 */
@Configuration
@RefreshScope
@Getter
@Setter
public class OssConfig {

    @Value("${biz.oss.endpoint}")
    private String endpoint;

    @Value("${biz.oss.bucket}")
    private String bucket;

    @Value("${biz.oss.access-key-id}")
    private String accessKeyId;

    @Value("${biz.oss.access-key-secret}")
    private String accessKeySecret;

    /**
     * 最大上传长度单位m，默认20M
     */
    @Value("${biz.oss.maxLength:20}")
    private Integer maxLength;
}
